From 05f45943b27b15155adc10e901acd4f22936e22e Mon Sep 17 00:00:00 2001 From: "ach61@labyrinth.cl.cam.ac.uk" Date: Tue, 8 Jun 2004 11:59:46 +0000 Subject: [PATCH] bitkeeper revision 1.939.1.1 (40c5aa32hbEqDyGf0-BJufIsvBNHsg) do_int3: only call pdb_handle_exception if pdb_initialized --- xen/arch/i386/traps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/i386/traps.c b/xen/arch/i386/traps.c index d30c324804..d798477a38 100644 --- a/xen/arch/i386/traps.c +++ b/xen/arch/i386/traps.c @@ -252,7 +252,7 @@ asmlinkage void do_int3(struct pt_regs *regs, long error_code) struct guest_trap_bounce *gtb = guest_trap_bounce+smp_processor_id(); trap_info_t *ti; - if ( pdb_handle_exception(3, regs) == 0 ) + if ( pdb_initialized && pdb_handle_exception(3, regs) == 0 ) return; if ( (regs->xcs & 3) != 3 ) { @@ -377,7 +377,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, long error_code) #endif } - if (pdb_page_fault_possible) + if (pdb_page_fault_possible) /* implicit pdb_initialized */ { pdb_page_fault = 1; /* make eax & edx valid to complete the instruction */ -- 2.30.2